package com.yf.dmp.controller;

import com.yf.dmp.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
public class MenuController {
    @Autowired
    MenuService mService;

    @RequestMapping("/menu")
    public String getMenu(){
        return mService.getMenu();
    }

}
